/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rafkind.resrev.web;

import com.rafkind.resrev.data.User;
import org.apache.wicket.Request;
import org.apache.wicket.protocol.http.WebSession;

/**
 *
 * @author dave
 */
public class Session extends WebSession {
  private User currentUser;
  
  public Session(Request request) {
    super(request);
  }

  public User getCurrentUser() {
    return currentUser;
  }

  public void setCurrentUser(User currentUser) {
    this.currentUser = currentUser;
  }
  
  public boolean isAuthenticated() {
    return currentUser != null;
  }
}